package com.neu.cloudfactory.repository;

import com.neu.cloudfactory.bean.Product.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductRepository extends JpaRepository<Product,Integer> {
    List<Product> findAllByTypeid(int i);
    boolean existsByTypeid(Integer typeid);
    Page<Product> findAllByIdOrNameContainingOrTypeidOrSizeContainingOrDescriptionContaining(Integer id,String input1,Integer typeid,String input2,String input,Pageable pageable);
}
